package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.OTCSysDictionaryItem;
import mn.idax.exchange.otc.entity.OTCSysDictionaryItemExample;
import mn.idax.exchange.otc.vo.PayTypeDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface OTCSysDictionaryItemMapper {
    int countByExample(OTCSysDictionaryItemExample example);

    int deleteByExample(OTCSysDictionaryItemExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCSysDictionaryItem record);

    int insertSelective(OTCSysDictionaryItem record);

    List<OTCSysDictionaryItem> selectByExampleWithRowbounds(OTCSysDictionaryItemExample example, RowBounds rowBounds);

    List<OTCSysDictionaryItem> selectByExample(OTCSysDictionaryItemExample example);

    OTCSysDictionaryItem selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCSysDictionaryItem record, @Param("example") OTCSysDictionaryItemExample example);

    int updateByExample(@Param("record") OTCSysDictionaryItem record, @Param("example") OTCSysDictionaryItemExample example);

    int updateByPrimaryKeySelective(OTCSysDictionaryItem record);

    int updateByPrimaryKey(OTCSysDictionaryItem record);

    List<OTCSysDictionaryItem> listItem(String dictCode);

    //获取指定法币的详细信息
    OTCSysDictionaryItem getPayUnitDetail(@Param("unit") String unit);

    //获取指定数字币最大出售额的详细信息
    OTCSysDictionaryItem getDigitalCoinDetail(@Param("coinId")String coinId);

    //场外支持的支付方式
    List<PayTypeDTO> getPayType();
}